Optimal. Leaf size=104 \[ e x \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};\frac {e^2 x^2}{d^2}\right )-\frac {\left (d^2-e^2 x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1-\frac {e^2 x^2}{d^2}\right )}{2 d (1+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 104, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.217, Rules used = {778, 272, 67,
252, 251} \begin {gather*} e x \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};\frac {e^2 x^2}{d^2}\right )-\frac {\left (d^2-e^2 x^2\right )^{p+1} \, _2F_1\left (1,p+1;p+2;1-\frac {e^2 x^2}{d^2}\right )}{2 d (p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 67
Rule 251
Rule 252
Rule 272
Rule 778
Rubi steps
\begin {align*} \int \frac {(d+e x) \left (d^2-e^2 x^2\right )^p}{x} \, dx &=d \int \frac {\left (d^2-e^2 x^2\right )^p}{x} \, dx+e \int \left (d^2-e^2 x^2\right )^p \, dx\\ &=\frac {1}{2} d \text {Subst}\left (\int \frac {\left (d^2-e^2 x\right )^p}{x} \, dx,x,x^2\right )+\left (e \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p}\right ) \int \left (1-\frac {e^2 x^2}{d^2}\right )^p \, dx\\ &=e x \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};\frac {e^2 x^2}{d^2}\right )-\frac {\left (d^2-e^2 x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1-\frac {e^2 x^2}{d^2}\right )}{2 d (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 104, normalized size = 1.00 \begin {gather*} e x \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};\frac {e^2 x^2}{d^2}\right )-\frac {\left (d^2-e^2 x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;1-\frac {e^2 x^2}{d^2}\right )}{2 d (1+p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int \frac {\left (e x +d \right ) \left (-e^{2} x^{2}+d^{2}\right )^{p}}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 3.61, size = 78, normalized size = 0.75 \begin {gather*} - \frac {d e^{2 p} x^{2 p} e^{i \pi p} \Gamma \left (- p\right ) {{}_{2}F_{1}\left (\begin {matrix} - p, - p \\ 1 - p \end {matrix}\middle | {\frac {d^{2}}{e^{2} x^{2}}} \right )}}{2 \Gamma \left (1 - p\right )} + d^{2 p} e x {{}_{2}F_{1}\left (\begin {matrix} \frac {1}{2}, - p \\ \frac {3}{2} \end {matrix}\middle | {\frac {e^{2} x^{2} e^{2 i \pi }}{d^{2}}} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (d^2-e^2\,x^2\right )}^p\,\left (d+e\,x\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________